# -*- encoding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 8
_modified_time = 1357474430.602
_enable_loop = True
_template_filename = 'resources/FrageOpen.html'
_template_uri = 'resources/FrageOpen.html'
_source_encoding = 'ascii'
_exports = []


def render_body(context,**pageargs):
    __M_caller = context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        LerneinheitNummer = context.get('LerneinheitNummer', UNDEFINED)
        FrageText = context.get('FrageText', UNDEFINED)
        AbschnittBezeichner = context.get('AbschnittBezeichner', UNDEFINED)
        AntwortText = context.get('AntwortText', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'<h2>Frage Erstellen</h2>\r\n    <form action="/Fragen/save" method="post" accept-charset="utf-8">\r\n\r\n        <input type="hidden" name="AbschnittBezeichner" value="')
        # SOURCE LINE 4
        __M_writer(unicode(AbschnittBezeichner))
        __M_writer(u'" />\r\n        <input type="hidden" name="LerneinheitNummer" value="')
        # SOURCE LINE 5
        __M_writer(unicode(LerneinheitNummer))
        __M_writer(u'" />\r\n\r\n        <label>Frage\r\n')
        # SOURCE LINE 8
        if FrageText == None:
            # SOURCE LINE 9
            __M_writer(u'            <input type="text" name="FrageText" value="" />\r\n            \r\n')
            # SOURCE LINE 11
        else:
            # SOURCE LINE 12
            __M_writer(u'            <input type="text" name="FrageText" value="')
            __M_writer(unicode(FrageText))
            __M_writer(u'" />\r\n')
        # SOURCE LINE 14
        __M_writer(u'        </label>\r\n        \r\n        <label>Antwort\r\n')
        # SOURCE LINE 17
        if AntwortText == None:
            # SOURCE LINE 18
            __M_writer(u'            <input type="text" name="AntwortText" value="" />\r\n')
            # SOURCE LINE 19
        else:
            # SOURCE LINE 20
            __M_writer(u'            <input type="text" name="AntwortText" value="')
            __M_writer(unicode(AntwortText))
            __M_writer(u'" />\r\n')
        # SOURCE LINE 22
        __M_writer(u'        </label>\r\n\r\n    <button type="submit">Add</button>\r\n</form>\r\n\r\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


